{% extends 'base.html' %}
{% block title %}photo-login{% endblock %}
{% block head %}{% endblock %}
{% block body %}

    <div class="row mt-5">
        <div class="col"></div>
        <div class="col">
            <form action="{{ url_for('user.login') }}" method="post">
                <div class="mb-3">
                    <label for="exampleInputEmail1" class="form-label">邮箱</label>
                    <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp"
                           name="email">
                </div>
                <div class="mb-3">
                    <label for="exampleInputPassword1" class="form-label">密码</label>
                    <input type="password" class="form-control" id="exampleInputPassword1"
                           name="password">
                </div>
                {% for message in get_flashed_messages() %}
                    <div class="mb-3">
                        <div class="text-danger">{{ message }}</div>
                    </div>
                {% endfor %}
                <div class="d-grid gap-2">
                    <button type="submit" class="btn btn-primary">立即登陆</button>
                    <p style="text-align: right"><a href="{{ url_for('user.reset') }}" style="text-decoration-line: none;color: #bb2d3b">忘记密码?点击修改</a></p>
                </div>

            </form>
        </div>
        <div class="col"></div>
    </div>


{% endblock %}